import request from "@/utils/request";
import type {ICommonResponse} from "@/types/global";

export interface IUpdateUserInfoAPIRequestData {
    nickName?: string,
    passwordMd5?: string,
    introduceSign?: string
}

const updateUserInfoAPI = (data: IUpdateUserInfoAPIRequestData): ICommonResponse<string> => {
    return request({
        url: '/api/v1/user/info',
        method: "PUT",
        data,
    })
}

export default updateUserInfoAPI;